package com.lc.yygh.hosp.repository;

import com.lc.yygh.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface HospitalRepository extends MongoRepository<Hospital,String> {
    Hospital findByHoscode(String hoscode);

    //根据医院名称模糊查询医院
    List<Hospital>findByHosnameLike(String hosname);

}
